package S08.first;

import java.util.Comparator;

public class SortByAge implements Comparator<Student>{

	@Override
	public int compare(Student o1, Student o2) { //按年龄比较大小
		return o1.getAge()-o2.getAge();
	}

}
